package com.zhaojindong.ioc.component.lifecycle.third;

import lombok.extern.log4j.Log4j;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

/**
 * created by dean on 2018/8/20
 */
@Log4j
public class TestBean {

    @PostConstruct
    public void init() {
        log.info(">>> postConstruct init >>>");
    }

    @PreDestroy
    public void destroy() {
        log.info(">>> preDestroy destroy >>>");
    }
}